package main

import (
	"idle/internal/game/attr"
	"idle/internal/game/enum"
	"idle/internal/game/fight"
	"idle/internal/game/hero"
	"idle/internal/game/monster"
	"idle/internal/game/skill"
)

func main() {
	fr := &fight.FightRoom{}

	h := hero.NewHero()
	h.Name = "英雄"
	h.SetAttr(attr.Att, 165)
	h.SetAttr(attr.Hp, 205)
	h.Lv = 20

	m := monster.NewMonster()
	m.Name = "怪物"
	m.SetAttr(attr.Def, 210)
	m.SetAttr(attr.Hp, 598)
	m.SetAttr(attr.Block, 5)
	m.SetAttr(attr.Dex, 25)
	m.Lv = 21

	s := &skill.Skill{}
	s.Typ = enum.AttackSkill
	fr.CalHit(h, m, s)
}
